package org.colcon.web.model.title;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.colcon.web.model.Group;
import org.colcon.web.model.Title;
import org.colcon.web.server.Model;

public class RepresentativeTitle extends Title implements Serializable
{
	private static final long serialVersionUID = 3368263417307717987L;

	public RepresentativeTitle()
	{
		this(new HashMap<String, String>());
	}
	
	public RepresentativeTitle(Map<String, String> args)
	{
		this(args.get(PARENT));
	}
	
	public RepresentativeTitle(String parent)
	{
		super(
				parent, 
				Group.REPRESENTATIVE,
				"the user who represents the group " + Group.pathToGroup(parent) + " in " + Model.GROUP_CONGRESS, 
				"1",
				null
		);
	}
}
